package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_19_5C extends SkymobiProtocolMessage {
	int hallState;
	int roleId;
	int shopTypeValue;
	String name;

	public Mmochat_19_5C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_19_5);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		hallState = in.getUnsignedShort();
		roleId = in.getInt();
		shopTypeValue = in.getInt();
		name = in.getPrefixedString(2);
	}

	public int getHallState() {
		return hallState;
	}

	public String getName() {
		return name;
	}

	public int getRoleId() {
		return roleId;
	}

	public int getShopTypeValue() {
		return shopTypeValue;
	}

}
